﻿@helper Submit(string text,bool smallsize=false, string id = "")
    {
        id = string.IsNullOrWhiteSpace(id) ? "submit" : id;
    <input class="@(smallsize?"small":"big")" type="submit" id="@(id)" value="@(text)" name="@(id)" />
        
        if (!CurrentPage.PageData.ContainsKey("IsSubmitButtonScriptRegister"))
        {
            CurrentPage.PageData.Add("IsSubmitButtonScriptRegister", true);
    <script type="text/javascript">
        $(function () {
            $('input:submit').button();
        });
    </script>
        }
}